package org.zfes.snowier.common.monitor.http.okhttp3.handler;

import org.zfes.snowier.common.monitor.http.HttpRuntimeException;
import org.zfes.snowier.common.monitor.http.response.StreamResponse;

@SuppressWarnings("hiding")
@FunctionalInterface
public interface HandlerSyncStream<R> {

   
	default void onFailure(Exception e){
		
		throw new HttpRuntimeException(e);
	}
	
	R onResponse(StreamResponse StreamResponse);
     
}
